package org.davidtrevien.com.imput.omi.panels.center;

import javax.swing.JPanel;

import layout.TableLayout;

import org.davidtrevien.com.imput.omi.panels.center.holiday.HolidayCtrl;
import org.davidtrevien.com.imput.omi.panels.center.imputation.ImputationCtrl;
import org.davidtrevien.com.imput.omi.panels.center.os.OsCtrl;
import org.davidtrevien.com.imput.omi.panels.center.param.ParamCtrl;
import org.davidtrevien.com.imput.omi.panels.center.planning.PlanningCtrl;

@SuppressWarnings("serial")
public class CenterView
extends JPanel {

	protected PlanningCtrl planningCtrl;
	protected OsCtrl osCtrl;
	protected HolidayCtrl holidayCtrl;
	protected ImputationCtrl imputationCtrl;
	protected ParamCtrl paramCtrl;
	
	public CenterView() {
		initComponent();
	}

	private void initComponent() {
		double size[][] = new double[][] {
				{TableLayout.FILL},
				{TableLayout.FILL}
		};
		TableLayout layout = new TableLayout(size);
		
		setLayout(layout);
		
		this.planningCtrl = new PlanningCtrl();
		this.osCtrl = new OsCtrl();
		this.holidayCtrl = new HolidayCtrl();
		this.imputationCtrl = new ImputationCtrl();
		this.paramCtrl = new ParamCtrl();
		
		add(this.planningCtrl.getView(), "0,0");
		add(this.osCtrl.getView(), "0,0");
		add(this.holidayCtrl.getView(), "0,0");
		add(this.imputationCtrl.getView(), "0,0");
		add(this.paramCtrl.getView(), "0,0");
	}

}
